finsihed implenting the square function, tested it, and finished some questions.