Update BasicFunction.java

add open and close light function