Added 'update' method