classEndsWith and classContains functions written. Needs testing and implementation.