print elements of stocks array