diff --git a/index.html b/index.html
index 48d14ca..1a04926 100644
--- a/index.html
+++ b/index.html
@@ -1,6 +1,7 @@
@@ -12,4 +13,5 @@
-
+
+
diff --git a/scripts/flowers.js b/scripts/flowers.js
new file mode 100644
index 0000000..5d5b254
--- /dev/null
+++ b/scripts/flowers.js
@@ -0,0 +1,80 @@
+(function () {
+ 'use strict';
+ var stems = document.querySelectorAll( '.stem' );
+ var flowers = document.querySelectorAll( '.flower' );
+ var colours = [
+ 'deeppink',
+ 'black',
+ 'purple',
+ 'brown',
+ 'skyblue',
+ 'pink',
+ 'cornflowerblue',
+ 'orange',
+ 'darkseagreen',
+ 'gold',
+ 'maroon',
+ 'midnightblue',
+ 'yellow',
+ '#003f07'
+ ];
+ var currentColour = 0;
+
+ function toggleClass( element, className ) {
+ if ( element.classList.contains( className ) ) {
+ element.classList.remove( className );
+ } else {
+ element.classList.add( className );
+ }
+ }
+
+ function cycleColour( direction ) {
+ direction = direction || '+';
+
+ if ( direction === '-' ) {
+ currentColour += 1;
+ } else {
+ currentColour -= 1;
+ }
+
+ if ( currentColour === -1 ) {
+ currentColour = colours.length -1;
+ } else if ( currentColour === colours.length ) {
+ currentColour = 0;
+ }
+
+ return currentColour;
+ }
+
+ window.addEventListener( 'keyup', function ( event ) {
+ var colour;
+ var key = event.which;
+ var keys = {
+ z: 90,
+ x: 88,
+ c: 67,
+ left: 37,
+ right: 39
+ };
+
+
+ if ( key === keys.z ) {
+ toggleClass( stems[ 0 ], 'alive' );
+ } else if ( key === keys.x ) {
+ toggleClass( stems[ 1 ], 'alive' );
+ } else if ( key === keys.c ) {
+ toggleClass( stems[ 2 ], 'alive' );
+ } else if ( key === keys.left ) {
+ colour = cycleColour( '+' );
+ [].forEach.call( flowers, function ( flower ) {
+ flower.style.backgroundColor = colours[ colour ];
+ });
+ } else if ( key === keys.right ) {
+ colour = cycleColour( '-' );
+ [].forEach.call( flowers, function ( flower ) {
+ flower.style.backgroundColor = colours[ colour ];
+ });
+ }
+ });
+
+})();
diff --git a/scripts/prefix.js b/scripts/prefix.js
new file mode 100644
index 0000000..13f1576
--- /dev/null
+++ b/scripts/prefix.js
@@ -0,0 +1,118 @@
+/**
+ * StyleFix 1.0.3 & PrefixFree 1.0.7
+ * @author Lea Verou
+ * MIT license
+ */(function(){function t(e,t){return[].slice.call((t||document).querySelectorAll(e))}if(!window.addEventListener)return;var e=window.StyleFix={link:function(t){try{if(t.rel!=="stylesheet"||t.hasAttribute("data-noprefix"))return}catch(n){return}var r=t.href||t.getAttribute("data-href"),i=r.replace(/[^\/]+$/,""),s=(/^[a-z]{3,10}:/.exec(i)||[""])[0],o=(/^[a-z]{3,10}:\/\/[^\/]+/.exec(i)||[""])[0],u=/^([^?]*)\??/.exec(r)[1],a=t.parentNode,f=new XMLHttpRequest,l;f.onreadystatechange=function(){f.readyState===4&&l()};l=function(){var n=f.responseText;if(n&&t.parentNode&&(!f.status||f.status<400||f.status>600)){n=e.fix(n,!0,t);if(i){n=n.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi,function(e,t,n){return/^([a-z]{3,10}:|#)/i.test(n)?e:/^\/\//.test(n)?'url("'+s+n+'")':/^\//.test(n)?'url("'+o+n+'")':/^\?/.test(n)?'url("'+u+n+'")':'url("'+i+n+'")'});var r=i.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");n=n.replace(RegExp("\\b(behavior:\\s*?url\\('?\"?)"+r,"gi"),"$1")}var l=document.createElement("style");l.textContent=n;l.media=t.media;l.disabled=t.disabled;l.setAttribute("data-href",t.getAttribute("href"));a.insertBefore(l,t);a.removeChild(t);l.media=t.media}};try{f.open("GET",r);f.send(null)}catch(n){if(typeof XDomainRequest!="undefined"){f=new XDomainRequest;f.onerror=f.onprogress=function(){};f.onload=l;f.open("GET",r);f.send(null)}}t.setAttribute("data-inprogress","")},styleElement:function(t){if(t.hasAttribute("data-noprefix"))return;var n=t.disabled;t.textContent=e.fix(t.textContent,!0,t);t.disabled=n},styleAttribute:function(t){var n=t.getAttribute("style");n=e.fix(n,!1,t);t.setAttribute("style",n)},process:function(){t('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link);t("style").forEach(StyleFix.styleElement);t("[style]").forEach(StyleFix.styleAttribute)},register:function(t,n){(e.fixers=e.fixers||[]).splice(n===undefined?e.fixers.length:n,0,t)},fix:function(t,n,r){for(var i=0;i
-1&&(e=e.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/ig,function(e,t,n,r){return t+(n||"")+"linear-gradient("+(90-r)+"deg"}));e=t("functions","(\\s|:|,)","\\s*\\(","$1"+s+"$2(",e);e=t("keywords","(\\s|:)","(\\s|;|\\}|$)","$1"+s+"$2$3",e);e=t("properties","(^|\\{|\\s|;)","\\s*:","$1"+s+"$2:",e);if(n.properties.length){var o=RegExp("\\b("+n.properties.join("|")+")(?!:)","gi");e=t("valueProperties","\\b",":(.+?);",function(e){return e.replace(o,s+"$1")},e)}if(r){e=t("selectors","","\\b",n.prefixSelector,e);e=t("atrules","@","\\b","@"+s+"$1",e)}e=e.replace(RegExp("-"+s,"g"),"-");e=e.replace(/-\*-(?=[a-z]+)/gi,n.prefix);return e},property:function(e){return(n.properties.indexOf(e)?n.prefix:"")+e},value:function(e,r){e=t("functions","(^|\\s|,)","\\s*\\(","$1"+n.prefix+"$2(",e);e=t("keywords","(^|\\s)","(\\s|$)","$1"+n.prefix+"$2$3",e);return e},prefixSelector:function(e){return e.replace(/^:{1,2}/,function(e){return e+n.prefix})},prefixProperty:function(e,t){var r=n.prefix+e;return t?StyleFix.camelCase(r):r}};(function(){var e={},t=[],r={},i=getComputedStyle(document.documentElement,null),s=document.createElement("div").style,o=function(n){if(n.charAt(0)==="-"){t.push(n);var r=n.split("-"),i=r[1];e[i]=++e[i]||1;while(r.length>3){r.pop();var s=r.join("-");u(s)&&t.indexOf(s)===-1&&t.push(s)}}},u=function(e){return StyleFix.camelCase(e)in s};if(i.length>0)for(var a=0;a