changed writeProxyLine into a method on ProxyLine; moved EqualTo into test file.