updated square types and main with read function