Modified of method.

Well, I misunderstood the way `of` behaves in hte stream api...