fixed function passing in list, added notebook example