add stack using array liking C, anonymous struct & method