Add list function to index
lib/cows: in list function use callbacks and return list instead of printing