Well working version. Average score: 600