Completed Lab3
Lab3: Cleaned up the code and added some comments