Eric's homework 3