Implemented method to generate playlist