finished Main Java Problem
Added class derivated from Node