Updated challenge to write analyze function.