The Designing of Artificial Intelligence. The Concept of a Machine with a Soul

Can any man implant a purpose in the life of a Machine that the man designs performing intelligent actions? What is the distinction between Mechanical Actions and Spiritual Actions? What is intelligence?