RPN: Read type class; simplify code