Solved problem. Summary updated. Added test cases, there are 14 now and everything is working :D