a09.c final version