Add classes and hasClass methods