Updating with the Listener class