implemented text printing using prelude