using o class