class setup