put into a class

Signed-off-by: Liew Zhao Wei <zhaoweiliew@gmail.com>