Computer homework 2-4