homework writing a plagin