created a get_galaxy_connection() model method in Instance for better code reusability