Buttondat approach, not looking feasible, trying the matrix approach