Building a Coarse-Grained Model Based on the Mori-Zwanzig Formalism