diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index bba602d2..997b9216 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -93,7 +93,7 @@
a:label="@string/c_vars_and_constants"
a:configChanges="orientation|keyboardHidden"/>
-
-
-
-
- {
-
- private int i;
-
- @NotNull
- private final String targetString;
-
- public StartsWithFinder(@NotNull String targetString, int i) {
- this.targetString = targetString;
- this.i = i;
- }
-
- @Override
- public boolean isFound(@Nullable String s) {
- return targetString.startsWith(s, i);
- }
-
- public void setI(int i) {
- this.i = i;
- }
-}
diff --git a/src/main/java/org/solovyev/android/calculator/math/MathType.java b/src/main/java/org/solovyev/android/calculator/math/MathType.java
index 5db95224..b9321fdc 100644
--- a/src/main/java/org/solovyev/android/calculator/math/MathType.java
+++ b/src/main/java/org/solovyev/android/calculator/math/MathType.java
@@ -10,7 +10,7 @@ import jscl.NumeralBase;
import jscl.math.function.Constants;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-import org.solovyev.android.calculator.StartsWithFinder;
+import org.solovyev.common.StartsWithFinder;
import org.solovyev.android.calculator.model.CalculatorEngine;
import org.solovyev.android.calculator.model.CalculatorParseException;
import org.solovyev.common.utils.CollectionsUtils;
diff --git a/src/main/java/org/solovyev/android/calculator/model/ToJsclTextProcessor.java b/src/main/java/org/solovyev/android/calculator/model/ToJsclTextProcessor.java
index d2d055e0..9fd64ac4 100644
--- a/src/main/java/org/solovyev/android/calculator/model/ToJsclTextProcessor.java
+++ b/src/main/java/org/solovyev/android/calculator/model/ToJsclTextProcessor.java
@@ -8,7 +8,7 @@ package org.solovyev.android.calculator.model;
import jscl.math.function.IConstant;
import org.jetbrains.annotations.NotNull;
-import org.solovyev.android.calculator.StartsWithFinder;
+import org.solovyev.common.StartsWithFinder;
import org.solovyev.android.calculator.math.MathType;
import org.solovyev.common.utils.CollectionsUtils;
diff --git a/src/main/java/org/solovyev/android/calculator/CalculatorPlotActivity.java b/src/main/java/org/solovyev/android/calculator/plot/CalculatorPlotActivity.java
similarity index 98%
rename from src/main/java/org/solovyev/android/calculator/CalculatorPlotActivity.java
rename to src/main/java/org/solovyev/android/calculator/plot/CalculatorPlotActivity.java
index 8d0080e0..63ffc3a7 100644
--- a/src/main/java/org/solovyev/android/calculator/CalculatorPlotActivity.java
+++ b/src/main/java/org/solovyev/android/calculator/plot/CalculatorPlotActivity.java
@@ -4,7 +4,7 @@
* or visit http://se.solovyev.org
*/
-package org.solovyev.android.calculator;
+package org.solovyev.android.calculator.plot;
import android.app.Activity;
import android.graphics.Color;
@@ -33,8 +33,7 @@ import org.achartengine.tools.ZoomEvent;
import org.achartengine.tools.ZoomListener;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
-import org.solovyev.android.calculator.plot.MyXYSeries;
-import org.solovyev.android.calculator.plot.PlotUtils;
+import org.solovyev.android.calculator.R;
import org.solovyev.common.utils.MutableObject;
import java.io.Serializable;
diff --git a/src/main/java/org/solovyev/android/view/widgets/AngleUnitsButton.java b/src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java
similarity index 92%
rename from src/main/java/org/solovyev/android/view/widgets/AngleUnitsButton.java
rename to src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java
index 4a3bd30e..24852c4c 100644
--- a/src/main/java/org/solovyev/android/view/widgets/AngleUnitsButton.java
+++ b/src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java
@@ -4,7 +4,7 @@
* or visit http://se.solovyev.org
*/
-package org.solovyev.android.view.widgets;
+package org.solovyev.android.calculator.view;
import android.content.Context;
import android.content.res.Resources;
@@ -14,6 +14,7 @@ import android.util.AttributeSet;
import org.jetbrains.annotations.NotNull;
import org.solovyev.android.calculator.R;
import org.solovyev.android.calculator.model.CalculatorEngine;
+import org.solovyev.android.view.widgets.DirectionDragButton;
/**
* User: serso
diff --git a/src/main/java/org/solovyev/android/view/widgets/NumeralBasesButton.java b/src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java
similarity index 92%
rename from src/main/java/org/solovyev/android/view/widgets/NumeralBasesButton.java
rename to src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java
index 1160bdd6..200bf4f1 100644
--- a/src/main/java/org/solovyev/android/view/widgets/NumeralBasesButton.java
+++ b/src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java
@@ -4,7 +4,7 @@
* or visit http://se.solovyev.org
*/
-package org.solovyev.android.view.widgets;
+package org.solovyev.android.calculator.view;
import android.content.Context;
import android.content.res.Resources;
@@ -14,6 +14,7 @@ import android.util.AttributeSet;
import org.jetbrains.annotations.NotNull;
import org.solovyev.android.calculator.R;
import org.solovyev.android.calculator.model.CalculatorEngine;
+import org.solovyev.android.view.widgets.DirectionDragButton;
/**
* User: serso
diff --git a/src/main/java/org/solovyev/android/calculator/TextHighlighter.java b/src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java
similarity index 99%
rename from src/main/java/org/solovyev/android/calculator/TextHighlighter.java
rename to src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java
index b535bebf..f8572d9e 100644
--- a/src/main/java/org/solovyev/android/calculator/TextHighlighter.java
+++ b/src/main/java/org/solovyev/android/calculator/view/TextHighlighter.java
@@ -4,7 +4,7 @@
* or visit http://se.solovyev.org
*/
-package org.solovyev.android.calculator;
+package org.solovyev.android.calculator.view;
import jscl.MathContext;
import org.jetbrains.annotations.NotNull;
diff --git a/src/test/java/org/solovyev/android/calculator/TextHighlighterTest.java b/src/test/java/org/solovyev/android/calculator/TextHighlighterTest.java
index 1fd99072..12413380 100644
--- a/src/test/java/org/solovyev/android/calculator/TextHighlighterTest.java
+++ b/src/test/java/org/solovyev/android/calculator/TextHighlighterTest.java
@@ -13,6 +13,7 @@ import junit.framework.Assert;
import org.junit.Test;
import org.solovyev.android.calculator.model.CalculatorEngine;
import org.solovyev.android.calculator.model.TextProcessor;
+import org.solovyev.android.calculator.view.TextHighlighter;
import java.util.Date;
import java.util.Random;