encapsulating dynamic content in entry class