first four cpp assignments revised.