added and completed problem 36.