this is for a class homework question