Adding template logic with the help of Caio :)