example added bugs fixed (hopefully)