attempted the homework
added comment functionality