Creating the append() method