Working version. Also, added an RMI test class.