added legitFunction() and edited showClas()

bkj