added codingbat stuff for hw 8