Lectures on control theory