lifestyle algorithm functioning and refactored
Merge branch 'feature/algorithm/lifestyle'