finish assignment 1-4