Code complete for hw5