Complete exercise #1-8