First commit with several functions done in cloud 9