added sample code for branch