intermediate calculation task d
finished task d)