hw5 part4: bitcoin