use pointers as class members