added update method
First Commit