Provided java and scala code for person