add strategy model to encapsulate the calculate algorithm