Changed Hostname and HostnameCollection to observer pattern