confused as to why this is a class