[a] add cpp file from lect5