Programmable Controllers Theory and Implementation: Theory and Implementation