how.does goat work