CPP course first exercise