add practice script on function