added function pointer to draw method, testing