finished code for iam project 1