Add RegisterAs example