Hyperplane arrangements and computations with CoCoA