added function and example using data from commonsense

fixed analog example