added file containing example code, file to test code and assignment file, matrix function might already work