Added the helloworld class and a header for foo; changed the main code