learned how to count
added fn logging and fixed an oder-of-operations bug in the each method