upadte assignment 2: no warning.