Reformatted ed521.cpp for clarity.