Added the template method - function builder code for tomorrow