Finished problem 19; small bug somewhere