added example of passing fn to hypnotable