java inspired samples