Update day-4-exercise-6.groovy

a constructor created on exercise 6, syntax worked on a little