To express a past habit or state which one will be the correct expression ?

Answer: 
I used to come here when I was a child
To express a past habit or state which one will be the correct expression ?