adding method to_dict() in musics and creating hash