Modified the Applicative instance implementation so it does not usee lists anymore