Peel and chop the onions. Mix 1/3 with minced meat, tomato paste, salt and pepper. In a baking dish (30 centimeters long) lay the slices of bacon to edge slightly hung. Peel and grate the potatoes, squeeze it well. Add the potatoes to the remaining onions, flour, mix well. Half of the potato mixture to put into shape. Top with 4 slices of cheese, cheese - beef on top - the remaining potato mixture. Close hanging bacon and put the remaining cheese. Bake in pre-heated to 175-200 degrees Celsius. oven for 45-50 minutes. Serve sprinkled with oregano.