Task2 almost finished. Buffer functionality is not ready yet.