Created a second version of the continuous sum and started writing some unittest for it.