Wrote basic message processing and testing