Adding put method