add method commits#last