Modified template
Completed Problem 34