Add HeartPattern code

need refactor