first two parts of tutorial