useful of method class