Reverting class attribute usage to make it work with PHP 5.3

- Updated #171 to make it work with PHP 5.3 or lower