updated decorator example