added pictures and some codes