Goat-herding Application