coding #276 agregando contraints