refactored, added some simple members to magic square