* added tests to satisfy first-of-type and last-of-type * edited hints to require nth-of-type selector * refactor for readability
* added tests to satisfy first-of-type and last-of-type * edited hints to require nth-of-type selector * refactor for readability