forgot to commit for first 6 examples; added methods and tests to pass for first 6 exercises