https://medium.com/@rasool.rahmanzade/functional-programming-in-typescript-a-financial-data-flow-033e0ede3b93