Create hw3.cpp

The main source file for the hw3 project.