homework3 rev6