added the code and updated the description