ASCII & Main Method Algorithm