WIP: cpp port, started work on Text class