Tutorial 3 completion

Code after tutorial 3 was completed