add a model `net` and move message.c into `net` model