This is an extendable class which extends the WP_Widget class. It handles the saving of options as well as offering often-used field types.