Step 1:

class SmashingHello extends WP_Widget {

Step 2:

function SmashingHello() {
	parent::WP_Widget(false, $name = Smashing Hello);
}

Step 3:

function widget($args, $instance) {
	extract( $args );
	?>
		<?php echo $before_widget; ?>
			<?php echo $before_title
				. $instance[title]
				. $after_title; ?>
			Well hello there! Aint that just Smashing?
		<?php echo $after_widget; ?>
	<?php
}

Step 4:

function update($new_instance, $old_instance) {
	return $new_instance;
}

$instance[music] = strip_tags( $new_instance[music] );


Step 5:

function form($instance) {
	$title = esc_attr($instance[title]);
	?>
		<p>
			<label for=<?php echo $this->get_fi eld_id(title); ?>>Title: <input class=widefat id=<?php echo $this->get_fi eld_id(title); ?> name=<?php echo $this->get_fi eld_name(title); ?> type=text value=<?php echo $title; ?> /></label>
		</p>
	<?php
}

Step 6:

}

add_action(widgets_init, create_function(, return register_widget(SmashingHello);));