implement the classB