insert method implemented. no compilation errors