added code from codeacademy
removed temp file