Should use maps, this is more the correct approach.