Adding cool.flex and test cases