getRight and getBottom added.
inside added with tests.