update of assignment 3