partial solution to 4-19