Rewrote as an object