sections 1-2 of tutorial