Declared previously unresolved variable 'self'