Cost oriented programming in the cloud