Extending ScanActivity to separate class