some homework code