Added an update method for plans