ramteja's submissions for second problem