refactored playlist to be an object