myar.c for cs311