initial ex16
ex16 without using malloc, but freeing fails