fixed warnings.
answered practice 20.1.