first version of exercises 6, without data