adding map, filter, append and flatMap to Stream