commiting Tree class with inputs & outputs