a simple shopping of two arrays and two tables