hw1 solution