this is also good:
Júlia délután írnifog egy levelet a nappaliban.Júlia délután írniakar egy levelet a nappaliban.1. subject 2. time adverb 3. infinitive 4. auxiliary 5. object 6. adverb of place(If there is no object in the sentence then this is the only good solution in case of affirmative sentence without coverb)

In case of negating sentences, the nem and the auxiliary comes before the object and the infinitive goes after the object.