square equations + unit-test