have to compile main1.cpp with matrix.cpp. It's probably a stupid mistake somewhere that im not picking up.