final hw 6 version with bitcoin payment