CP310 Homework 314