Added shebang and class inheritance