Created AbstractApplication and SimpleStack classes. Implemented
center() method for centering application windows.