function A
Fucntion b