Aded functions to corrospond with events
Finished tutorial --no2 debuggin
Found typos it works now