Lab 6 - Matrix Class functional