Add hometask matrix and triangle