Changed tags and attributes to class methods.