Updated example with setters