Rewriting the request parser to a object oriented one