added control structures, planning out the rest of basics