Implemented working version of project 3. Correctly outputting errors not yet implemented.