decided to call it quits, wrote the main function