adding new class with inheritance supported and makefile