add PrefixCalculator class with functionality, add calculate test