restructure the file bernoulli.jl