Added append() and prepend() methods and basic tests