Changed order of numbers around
Added clear button
refactored code with case statement