Using c99 standard. Adding more children, incorrecly