Completed problem 48, needs documenting