created packethandler class