Decoupling: Creating a interface for the Android Handler, so the Heartbeat class doesn't depend on Android.