first draft of exercises 1-3