Activity tracking and heart-rate monitor