remove magrittr and dplyr dependencies from example