closes #13. Will probably need to redo later.