Copied from homework text.