main method should display result of sqr method .need clarification.