Created matrix class to represent features etc