some exercises from Stream