implementation of basic hub scheme and room allocator