Building Reusable Classes for Frameworks