Completed solution for e1.34