Took out my common code and renamed streams as sequences (so as to not confuse with the standard library