Identifying input and output variables