third part of assignment 1