Codes related to topcoder practise