How do you keep your guinea pig from biting?

You can keep your Guinea pig from biting by feeding it hay with your hand. keep doing this until you notice a change in its habit of biting.