The following is the source code that we wrote in-class. I will update this code as the semester progresses.