modified algorithms for pizza
solution for bike