some method has beend implemented for Medol class