completed and solved diamond problem