added function to read through object by using reflection
usage of reflection by the template engine to read through data to be rendered