code prototype q&d