fixed missing function header, and added class names to inputs