almost done with problem 5, but trying to sequence the Maybe monad