Place flour in large bowl, add salt, sugar and yeast. In another bowl measure hot water, add marg. Stir tog till marg is melted. Add liquid ingred's to dry ingred's then add beaten egg. Mix until moistened. Using hands, mix dough in bowl. Continue kneading for 5 minutes. Shape dough into a ball, place in a greased bowl. Cover with a damp cloth and then a clean, dry cloth and put in a warm place until it doubles in size, approximately 1 hours. After it has doubled in size:. Roll dough out into a 10" by 15" rectangle. Place ham down middle of dough overlapping them slightly. Sprinkle 3/4 of the cheese over all of the dough. Roll like a jellyroll. Cut into 1" slices, place in a greased cake pan, cut side down. Sprinkle remaining cheese on top of buns. Put in a warm spot till double in size. Bake for approximately 15-20 mins at 375 degrees F. Tip pan over and let buns fall onto a plate.