a ruby exercise for a tax calculator