Initial commit of working CTE model