Code Commented by santhosh on 08Mar2013