Updated next function in ProductListBB.java