Code works

Code is working as desired. Time to coment the code to explain what is
happening.