Topcoder ans
Modify code with Spring