Updated code
Changes made