Filtering and optimal control -Module I