Scratch and personal analysis code