added methods for Class