Are you running samples and stopping once they "work"? The learning method of reading code and imitating the writing style is ...