Write compile and run a program