Cleaned up hw8.m, still need #7.