Using the Stream class methods