code kata - single list