A model of egg production