Mentally perceiving how means achieve ends