put() method changed to return value, if already there return old value
else return null