Implemented packet processing using OOP princibles