worked as HW example this morning to fix code.