added preview feature
completed mini-project