Form class implementation