Deleted packet bytes approach
Added object oriented approach