new class for graphics