Matrix. This is probably what you want.