code from CODERS meeting from 18.06