hearts.cpp