Added one more code golf version (actually renamed the previous one)