made code compilable, first sketch for generating a gaussion distribution