homework1 for software methods