adding hw2 coin simulation