Added new BC math functions class