homework 1. badly done.