Implemented a basic router