Create bernoulli.cpp