practice writing react classes