OO Design of framework