implemented solution printing