changed getNum, added setNum
returned getNum to original set up