My code for a class I'm taking. Don't use it!