finished analysis code on project3 aa228