An introduction to control systems