Sales Tax partially functional OOP