lab2 printstream, mapprintstream