complete draft of insertAfter method and test method