fist draft of assignment 3