exercises: one more exercise, this one to write the whole code.