corrections the function of the sample block

escapes an undefined error
little cleaner of a rule for the tech store example