created newEgg function