cpp solutions added