refactored layout and added functional/monadic dart examples