AppleTree class added Apple class fixed