I'm reading the book Harmony for the computer musician and there's an exercise where you need to harmonize 3 notes of a melody in D major, parameters are:
- you must use the same note length as the upper voices
- root position triads only
- triads are I - V - I
- 4 voices
- Avoid consecutive 5ths and octaves
- Have the leading note of the dominant triad rise up to the tonic
He proposes 2 solutions to the problem which are in the image below, one by choosing to not use the leading note of the dominant to rise up to the tonic and another one by using only 3 voices on the third chord.
I came to another solution but I'm guessing it's wrong but I can't figure out why it's wrong. Here's my solution: