Update accounts.rb

Trying to make sense of this code I adopted.