Make class extend object and make script executable