Add solutions to problems 8, 9, 10 and 11