REVISED CLASS ROUTINE

central routine