Implement module pattern for overall app