Adding ruby code for templates and utils