added example and testing models
bug fixed