New methods for Shapes and created unit tests for them.