added record and play functionalities