Wrote the rest of the insert method