added computer solver code