made class abstract. Added test for nesting.