added update method in Rocket class