added hmwk 3