Modeling early life history of cod