added support for function declaration

hindi pa kasama yung loob