Added Fixed Code: