Arvin and Stella's Hearts implementation