assignment 3 initialization