Entered code according to tutorial