added class methods in meals model for rendering of d3