finished the backend of the program, only need to create a main now.