Please move this "class" and the "textLayer" in a separate file.