second attempt hw3