implement "favorites" business logic code

implement "favorites" business logic code