0.1.0
adding main, and avoiding code repetition for character