Class Apple and Tree