Brianllamar's code

# What I did?

I solved the problem and wrote more test.  

1. I switched to `assert_equal` rathe than the plain `assert`
2. I used a constant rather than conditionals.