adding more example code for testing of inference