updated builder() and renamed mainw to testGraphics