homework 3 for vt class