compile and run code