addeddemo and initial working codeZ