New type system with refinements