modularised all of this, still bug with undeclared variables
modularised all the content
added a box and animation