Completed the basic functionality of the program