Scientists crack age-old egg problem