create AudioPlayer class and add utilities methods