Check, please!

I didn't really polish the codes, but I got it to kinda work.