Implementation of class design