Added getter and setter methods, and isOdd() and isEven() methods