Project1 first draft with fully working functions