It looks like you're code is missing some syntax sugar:
the method call to outprintarticlecreated() should be inside of the createarticle method (suggestion: use the camel case naming convention)...