CG HW3: tree creation input added.