attempt to do hw3, something doesnt seem correct