added exercise 20
modified exercise 20 with +=