adapted example