Create classes Signal and Burst for cleaner code.