changed remainder to pseudo, added some examples