* Implemented main method.