refactored evaluate method in Template class and extracted cancatenate method from it 89