implemented the concepts library and renamed flatMap to expand to make it more dart like