solutions to the three quizes