annotated cpp beginner program