Solve homework1-problem2: Rectangle Area