Adding the code after working on dealing with functions, arguments and File IO