implemented transmitter.py fully