Implement put method