first three parts of tutorial