Solved problems 16 and 21