completed chapter3 of tutorial.