solution to problem 79 added