added asclass() method