Adding constraint class