add append method with array-like parameters