Good for you! It's a nice feeling when things click.
And, a 40 mile ride is nothing to sneeze at even if it is mostly flat.