P cube