To update from class