Following the pyside tutorial instrunctions