better to use 'className' instead of 'class' as 'class' is reserved word in JS