Added case method in A and B