Initial commit with both required methods implemented.