expose calculate on the class as well