Kuchiwo's solution is intended, but seeing yours, I can't help but accept it as a perfectly valid alt solution; after all, it uses a trick just as clever.