solved problems 47-49