doing exercises 1-8