Updating input object - added constructor and update method