Solutions for problems 9 and 11 (easy)