Almos done with 1837.cpp