add hasClass method