project1. OOD in C, render function