A more faithful represenation of the original code