package refactoring, binary tree - classes