Creating a simple Stream jdk8-like class version