wrote classes SimpleConstructorChooser and SimpleMethodChooser