Solutions to problems 1 to 10