attorney can represents the defendant in a trial