added set/get for name & num
added update method