class defined but not working
compile success