ex16, main part
ex16 without pointers
ex16