first draft of assignment 3