Implementing Part 2 of Assignment 3.
Fixing indenting issues in code
Fixing indenting issues in code