added inspect method to class