Created a comparable Dog class and sorted with Collections