Added solutions to problems 5-10