assignment 1 solution