Computer homework 2-6