siva's submissions for second problem