refacted cards program and added coments