450g/1lb onions, peeled and sliced
salt and pepper
2 tbsp vegetable oil
450g/1lb mature cheddar, grated
beaten egg for glazing
900g/2lb shortcrust pastry