compiles; added couts when checks positive, segfault at check4