add functions for automating compute of rating that can be reused
Activity