This is second part of the hw3