hides matrices behind classes