created cmpt 225 c++ solution