Added separate class for text rendering