fromCollection implemented and tested