Added implementation for prepend