redid frontend.c with our previous example and renamed it .cpp