solved problems 8-11