I think this logic doesn't seem quite right, can you confirm it? The line assigning number in the if statement has no effect. 