Source file for CE0723A - Programming in C++ coursework part 2, task1