Created a broadcast and receiver