Implemented single and singleOrDefault methods