Cannot use uninitialized variable as instance of object!