Code used in cloud computing demo