first modifications for ex.6
updated exercise 6