Text this: An algorithm for solving bond pricing problem