Inserted algorithm in helper file & styled