first attempt at basic CART