created an unoptimized text rendering
optimized the text rendering;
put a method which sets the text position