In you code, the density is ` density = [[-3,-1,1,3],[-1,1],[0]]`. but I think it's ` density = [[-3,-1,1,3],[-2,2],[0]]`. See this: 
In you code, the density is
density = [[-3,-1,1,3],[-1,1],[0]].but I think it's

density = [[-3,-1,1,3],[-2,2],[0]].See this: