adding pear class