make parallelepiped class, use it in matrix view