There has been continuous advancement in numerical techniques and software engineering in the field of system thermal-hydraulics over the past decade. The current state-of-the-art involves the use of fully-implicit high-resolution schemes in conjunction with the Jacobian-Free Newton-Krylov (JFNK) method for both single-phase and two-phase flows. However, the application of these advanced schemes in system thermal-hydraulics codes is not a common practice. Given the opportunity and the need to develop a new modern system thermal–hydraulic code from scratch, there is no doubt that these recent advancements should be leveraged. In this work, we introduce a new modern object-oriented system thermal-hydraulics code named RETA. RETA is characterized by several key features, including: second-order temporal and spatial discretization schemes for both incompressible and compressible flows, as well as single-phase and two-phase flows; fully-implicit solution schemes utilizing both the Newton and PJFNK methods; and an object-oriented design of major fluid components and physical models, which allows for easy extension. A series of verification and demonstration studies are conducted to verify the implementation, demonstrate the accuracy improvement, and evaluate the performance of the new code. It is concluded that results from the second-order scheme are generally more reliable. Without the concern of a code stability issue, the second-order scheme should be the preferred and default choice for a code user or an analyst.