skeleton for handling the optional argument
added basic handling for optional argument