Adding some hacking from reading FP in Scala - trying out an implementation of sequence and traverse