Block connected by spring and pulley