Attempt to add beat
final code