Moved switch code into separate class
Add high and low priority tasks directly