How to Make a Sound Recorder?

Want to make a simple sound recorder. I need to make one button that starts the recording and then one button that stops the recording. Then I want to make a playback button to play the previously recorded file. Not sure what the block code is for this. Could someone help me with this if you can? Thanks!