first cut of hw7.sml