Creating an stepper object within a class

Thank you for you solution, I tried it and it worked (been a long while since I have seen this code compile successfully).

To answer your question, yes every finger has one stepper (as well as three other sensors which are handled by other classes I made (I did not include that code here as I saw it irrelevant)).

I was just wondering if in this code, if I wanted to run an AccelStepper function within the class (for example creating Finger.testFunction() would I need to prefix the AccelStepper fuction with anything or just do what is shown in the constructor setMaxSpeed(MAX_SPEED) eg.

class Finger : public AccelStepper
{
  public:
    Finger(int stepPin, int dirPin) : AccelStepper(DRIVER, stepPin, dirPin)
    {
      setMaxSpeed(MAX_SPEED);
    }

   //No prefix
   void testFunction(){
      moveTo(90);
   }
   //Somesort of prefix?
   void testFunction(){
      stepper.moveTo(90);
   }

};