begin the scratch code