implemented Selection
improved Selection.java
implemented Test class