introduced a factor variable, but still need to write proper code for it...
working on slides...