Added test for pattern 3
Added method for pattern 3
Added code to return pattern 3
Added test for pattern 4
Added method for pattern 4
Added code for pattern 4