functions of executive, legislature and judiciary