Updated 11 to be more idiomatic of Haskell