added better example in main method