Added classes for drawing text strings and for calculating time vars