Melt butter in saucepan and then add 6sliced onions. Cover with a lid and simmer for about 30 minutes. Add sugar and flour. Stir-cook a few minutes, then stir in stock, salt (remember Parmesan is salty), and pepper. Simmer for 30 minutes. Taste and adjust the seasonings.