Arduino Mega + MCP2515 module code needed

Job ID: 31264275

Budget: $10 – $30 USD

So the current setup is:
Arduino mega and a small mcp2515 module and i need the following:

1) arduino to read CAN messages from network and broadcast over serial
2) apart from network’s can messages arduino needs to generate 2 new CAN messages and update the values according to analog/digital pins (both directions)
3) arduino to control 2x 5v relays according to digital pin x input

Couple of other things are needed as well but the whole thing is pretty simple.