refactored server with ClockCollection.