first draft of problem1a