finished simple example