Refactored html method to to_html method
Refactored Meta class