This is my own code @topcoder.