#50 implement circular buffer
#50 correct prototype, set to void
#50 correct circular buffer