added multi target output sample code