added penToText which will contain our main algorithms