Created a foo in the main method and called the bar method