Removed: closing php tags
Replaced: static keywords by $this
Moved: global attributes to a separate class