Adding the code and some examples