API program as taught in newcoder