Understanding the LSB Sample Implementation