added appends method.