gaussnoise redone as a class