Elements of the philosophy of the mind, and of moral philosophy: to which is prefixed a compendium of logic