Added a philosopher class that can be utilized by both methods