added start of cpp code