worked through chaper 2 of tutorial