add OOP examples
Merge pull request #25 from afeld/tile-refactoring

add OOP examples