CHG: finished hw3