Fixing inheritance and creating sample components