update dweight for excersize 2.3
exercise 2.4