Method Definitions and If Statement