Grind the beef together with onion, season with salt and pepper. Add a little water to make elastic mass.
Scald and peel tomatoes and cut them into circles.
Fill the macaronis with the meat mass, put into a greased baking pan in turns with cheese slices. Cover the macaronis with the tomato circles, sprinkle with grated cheese and butter, cover the pan and stew in an oven for 30-40 minutes. Serve ketchup separately.