improved example. Added stop() and isPlaying() methods.