Implement `dnf` function.
Implement test for `dnf`.