Just to give another point of view, all theory/harmony books use musical examples for the topic that you're learning (V7 and inversions, subdominant functions, augmented 6 chords, counterpoint, whatever). Personally, I detest the Piston harmony books. So incredibly boring. I've used Tonal Harmony by Kostka and Payne, though I am not aware of books that work through harmony AND composition.
Enjoy your studies.