deleted top comment and added code to main.