added example code fixed end of line bug