create Shelter Dog class and refactor