Add a function for gaussian distribution