Dialog 2d for class assingment