added my own decorator function as demontrated in example 2