smash main methods into single class