added some functions beta distribution