Malachi's program would not run on the computer because it had a faulty hard drive.

Who is "it" in this prior sentence?
the computer
Amazon's Kindle Fire may surpass Apple's Ipad because they are quite expensive for providing a similar product.

Who is "they" in this prior sentence?
Apple
David hit Bill because Mary asked him to.

Who is "him" in this prior sentence?

David