added complex example code to readme