Revert "Revert "First version of Calculate.""

This reverts commit fcb6e4d3b40977f7517dc2853d34b8b91eb2f887.