Updated code
Updated Code