Implemented and tested the 'packet manipulation' task successfully.