Completed solution for e1.32