add main cpp