added c++ program for creating grams