Implementing run logic
Java execution (implementation completed)