solved problems 11 and 12