Two ways of updating data