egg logic