Error in original implementation for sample...