Better solution to 001