Completed solution for e1.33