Updating from class