For the beans with bacon and cheese, wash the beans well in a colander and drain the beans. Put some oil in a frying pan and roast the bacon with the onion. To the bacon and onion now add the beans and caraway seeds and heat. Stir constantly and season to taste with salt and pepper the beans with bacon. Finally, add the Gouda and spread evenly and let it melt.