Funkifying the algorithm class style