Commented out splice and implemented the constructor.