lecture3 cpp