adjust example model code to wait for response from server so that result displayed is not zero
add example code for model