setting up array monad
minor changes. array monad not working...