go programming hw7 for 02601