problems 50, 51, and 52 solved