add beaty of coding answer, tre and graph basic operations