added functionality via collections framework to FavoritePastries.java