add update method and write initial spec