learning 0 and 1