solutions to the homework