old unfinished project; trying to learn c++