singleton implementation using class loader

Signed-off-by: armen mkrtchyan <armenmkrtchyan88@gmail.com>