"Not declared in this scope" - Error fixed