Codes written in cpp