class routine