Adding tile class and tests