Resource class refactoring

Signed-off-by: Youngki Ahn <avej.com@gmail.com>