Implementing the App1 and App2 classes