Jkarni/constrained class