creating tile class and testing it on example, closes #2