Code written to the specifications provided by my professors