wrote a method for the class of specialty