changed some var names so that they are camel case named, and finished my alternate way of writing it, though the shorter one is best and more suscinct.