first. adding base logic algo.
make it classy...