Create Relays class and add tests.