public class and collections and some sorting