preparations for homework 2