egg and pancake functions coded