Updated syntax to include list and each statement.