adding cpp code
gui code