Steps towards probability calculator