fixed bugs

ran the program in the codeacademy and fixed several bugs (including trying to concatenate a str and an int)