Problem 1: coin flipping