completed homework for Nathan