Implemented tutorial 2