implemented course project 1