instantiate onlineUsers in constructor