demo using getInstance()