Determining beliefs and actions