Added final code according to tutorial