How a failed 9th grade science project became a multimillion-dollar contract