solution for hw 1 1176187