simple interface cpp