SGShape class, work in progress, nearing completion.