Replace and reserve function now implemented
testing replace function now implemented
error check reserve implemented