Create dist.m