Do things in procedural way

Signed-off-by: SeongJae Park <sj38.park@gmail.com>