First Working Code.... Shayad