added solutions to hw1 challenge problem 12