update homework hw09.c
add documentation