extend lesson1 with equals functions