Code for what is learnt in Coursera