a homework wrriten by playframework