draw_square written

not fully tested as do not have suitable test harness.

IT DOES COMPILE