hw base class with basic virtual general functions finished.