Classic philosophers problem explained and solved