Added more content to lookup(). Still lacking the part which communicates
with server (the RMIregistry).