Fix code samples

Example are incorrect