Created the method for total_earned
Merge