implemented tin feature and passed tests