some stuff towards a cup classifier working