Solved problems 19 and 20