Finished problem 42, needs documentation