added homework 6

both magic_square and pak_nacepin