add method class