almost finished the 4th C assignment