changed to new-style class with properties and setter - v0.3.0