Added add function for homework module