added coin flip function using Prob