Simple application based on maths logic