Created a constructor and copy constructor for the action class