added source codes from play template