What are three main roles and responsibilities of the courts